package com.lx.sync.consumer.controller;


import com.lx.sync.consumer.sync.SyncDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/sync")
public class DataSyncController {

    @Autowired
    private SyncDemoService syncDemoService;

    @GetMapping("/syncData")
    public void syncData() {
        syncDemoService.pullExternalDataAndSync();
    }




}
